# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=lolbas
pkgver=192.d148d27
pkgrel=1
pkgdesc='Living Off The Land Binaries And Scripts - (LOLBins and LOLScripts).'
groups=('blackarch' 'blackarch-windows')
arch=('any')
makedepends=('git')
url='https://github.com/api0cradle/LOLBAS'
source=("$pkgname::git+https://github.com/api0cradle/LOLBAS.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  cp -a ./* "$pkgdir/usr/share/windows/$pkgname/"
}

